package com.clqteam.serviceimpl;

import java.util.List;

import com.clqteam.dao.SelectSupplierDao;
import com.clqteam.daoimpl.SelectSupplierDaoImpl;
import com.clqteam.model.Supplier;
import com.clqteam.service.SelectSupplierService;

import net.sf.json.JSONObject;

public class SelectSupplierServiceImpl implements SelectSupplierService {
	SelectSupplierDao ssd=new SelectSupplierDaoImpl();
	
	

	@Override
	public JSONObject selectSupplier(String keyword, int page, int rows) {
		JSONObject jo=new JSONObject();
		jo.put("total", ssd.countSupplier(keyword));
		jo.put("rows", ssd.selectSupplierD(keyword, page, rows));
		
		return jo;
	}

}
